#ifndef VLAUNCHER_H
#define VLAUNCHER_H

#include    <QString>
#include    <QWidget>
#include    <QLabel>
#include    <QPushButton>
#include    <QVBoxLayout>
#include    <QHBoxLayout>
#include    <QApplication>
#include    <QIcon>
#include    <QTimer>
#include    <QPixmap>

#include    "VConnectionWindow.h"
#include    "VSettings.h"
#include    "VAnimatedPictures.h"
#include    "VEditor.h"
#include    "../Models/MPictures.h"
#include    "../Controlers/CDesign.h"

/* Lanceur d'applications */
class VLauncher : public QWidget
{
    Q_OBJECT
    private:
        QLabel  *title_label;
        QLabel  *background;
        QPixmap *picture;
        QPushButton *launch_game;
        QPushButton *launch_editor;
        QPushButton *launch_settings;
        QPushButton *exit_launcher;
        QWidget *news;
        VConnectionWindow   *v_connection_window;
        VSettings   *v_settings_window;
        VAnimatedPictures *v_animated_pictures;
        VEditor *v_editor_window;
        QIcon *icon;
        QTimer *timer;

        CSettings *c_settings;

    public:
        VLauncher(QWidget *parent = 0);
        ~VLauncher();

    public slots:
        void game();
        void editor();
        void settings();
        void quit_launcher();
        void update_theme();
        void quit_settings();
        void quit_editor();
};

#endif // VLAUNCHER_H
